﻿<UserControl x:Class="PenguinPublishNS.Views.SetOptions"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:PenguinPublishNS" xmlns:models="clr-namespace:PenguinPublishNS.Models"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Unloaded="UserControl_Unloaded_1">
    <Grid d:DataContext="{d:DesignInstance Type=models:Options}" Margin="0,0,0,-22" >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <StackPanel Height="40" Margin="0" VerticalAlignment="Top" Orientation="Horizontal">
            <Image HorizontalAlignment="Left" Height="34" Margin="10,0,0,0" Width="37" Source="/PenguinPublish;component/Images/32x32_folder_linux.png" Stretch="None" VerticalAlignment="Top"/>
            <Label Content="Change defaults for extension" HorizontalAlignment="Right" Margin="20,0,0,10" Width="201" FontWeight="Bold"/>
        </StackPanel>
        <Grid HorizontalAlignment="Left" Height="238" Margin="10,63,0,0" VerticalAlignment="Top" Width="280">
            <Grid.RowDefinitions>
                <RowDefinition Height="9*"/>
                <RowDefinition Height="9*"/>
                <RowDefinition Height="9*"/>
                <RowDefinition Height="9*"/>
                <RowDefinition Height="9*"/>
                <RowDefinition Height="9*"/>
                <RowDefinition Height="9*"/>
                <RowDefinition Height="9*"/>
                <RowDefinition Height="9*"/>
            </Grid.RowDefinitions>
            <CheckBox Content="Auto-validate host settings on close" Height="28" Margin="0" VerticalAlignment="Top" Padding="4,-1,0,0" IsChecked="{Binding extLogging}"/>
            <CheckBox Content="Publish without preview (one button publish)" Height="28" VerticalAlignment="Top" Padding="4,-1,0,0" Grid.Row="1" IsChecked="{Binding pubNoPreview}"/>
            <CheckBox Height="28" VerticalAlignment="Top" Padding="4,-1,0,0" Grid.Row="2" IsChecked="{Binding showValidateResults}" Content="Display host settings validation results"/>
            <CheckBox Content="Default new host to PPK" Height="28" VerticalAlignment="Top" Padding="4,-1,0,0" Grid.Row="3" IsChecked="{Binding alwaysUsePPK}"/>
            <CheckBox Content="Allow clearing of history (start over)" Height="28" VerticalAlignment="Top" Padding="4,-1,0,0" Grid.Row="4" Grid.RowSpan="2" Margin="0,0,0,27" IsChecked="{Binding startOver}"/>
            <Button x:Name="btnSave" Content="Save Options" HorizontalAlignment="Left" Height="25" Margin="328,4,-148,-2" Grid.Row="8" VerticalAlignment="Top" Width="100" Click="btnSave_Click"/>
            <TextBlock HorizontalAlignment="Left" Height="26" Grid.Row="7" TextWrapping="Wrap" VerticalAlignment="Top" Width="280" FontStyle="Italic" Foreground="#FF1616D6" FontWeight="Bold"><Run Text="These don't do anything yet!"/></TextBlock>
            <CheckBox Content="Trust blindly in 'synchronize directories' (faster)" Height="28" VerticalAlignment="Top" Padding="4,-1,0,0" Grid.Row="5" Grid.RowSpan="2" IsChecked="{Binding blindSync}" Margin="0,1,0,0"/>
            <CheckBox Content="Use list of file extensions to ignore" Height="28" VerticalAlignment="Top" Padding="4,-1,0,0" Grid.Row="6" Grid.RowSpan="2" IsChecked="{Binding ignoreFiles}"/>
            <TextBlock HorizontalAlignment="Left" Height="19" Margin="11,4,0,0" Grid.Row="8" TextWrapping="Wrap" Text="Settings save on close" VerticalAlignment="Top" Width="164" Foreground="#FFB41BC3"/>
        </Grid>
        <TextBlock x:Name="txtNetConn" Height="16" Margin="44,40,10,0" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Red" FontWeight="Bold"/>

    </Grid>
</UserControl>
